package exp;

import exp.logger.LoggerException;

public class DummyExperiment extends Experiment {
	
	private String result = "";

	public DummyExperiment() {
		Node root = generateDummyExperiment(4);
		this.setRoot(root);
		this.reset();
	}
	
	private Node generateDummyExperiment(int depth){
		StringNode n;
		
		if(depth == 0){
			n = new StringNode(null, null);
			n.setString("The end");
		}else{
			Node left = generateDummyExperiment(depth - 1);
			Node right = generateDummyExperiment(depth -1);
			n = new StringNode(left, right);
			n.setString("Shall we continue (L/R/Q)?");
		}
		
		return n;
	}
	
	public void takeLeft() throws LoggerException{
		super.takeLeft();
		result += "L";
	}
	
	public void takeRight() throws LoggerException{
		super.takeRight();
		result += "R";
	}
	
	public void reset(){
		setCurrentPos(getRoot());
	}

	@Override
	public void readFromFile(String file) {
	}
}
